Storage device with manual learning

ABSTRACT

In a particular embodiment, a system is disclosed that includes a controller to read data from and write data to a first storage medium. The controller is adapted to monitor logical block addresses (LBAs) of each read operation from the first storage medium and to selectively store files associated with the monitored LBAs that are less than a predetermined length at a second storage medium to enhance performance of applications associated with the LBAs.

CROSS-REFERENCE TO RELATED APPLICATION

The present application is a continuation of and claims priority of U.S.patent application Ser. No. 12/339,346 filed on Dec. 19, 2008.

FIELD

The present invention relates generally to a storage device with manuallearning, and more particularly, but not by limitation to, a storagedevice having a controller adapted to preserve particular logical blockaddresses at a memory to enhance system performance.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a block diagram of a particular illustrative embodiment of asystem including a storage device having a controller with manuallearning functionality;

FIG. 2 is a block diagram of a particular illustrative embodiment of asystem including a hybrid storage device having a controller adapted toprovide manual learning functionality;

FIG. 3 is a block diagram of a particular illustrative embodiment of asystem including a second storage media having a set of files associatedwith logical block addresses (LBAs);

FIG. 4 is a flow diagram of a particular illustrative embodiment of amethod of triggering manual learning at a storage device; and

FIG. 5 is a flow diagram of a second particular illustrative embodimentof a method of triggering manual learning at a storage device.

DETAILED DESCRIPTION OF ILLUSTRATIVE EMBODIMENTS

In a particular embodiment, a controller is disclosed to read data fromand write data to a first storage medium. The controller is adapted tomonitor logical block addresses (LBAs) of each read operation from thefirst storage medium and to selectively store the monitored LBAs at asecond storage medium to enhance performance of applications associatedwith the LBAs.

FIG. 1 is a block diagram of a particular illustrative embodiment of asystem 100 including a storage device 102 having a controller 108 withmanual learning functionality. The storage device 102 is adapted tocommunicate with a host system 104. In a particular embodiment, the hostsystem 104 can be a processor, a computer, mobile telephone, a personaldigital assistant, another electronic device, or any combinationthereof. The storage device 102 includes a host interface 106 that isadapted to send data to and receive data and data storage commands fromthe host system 104. The storage device 102 further includes acontroller 108 that is coupled to the host interface 106. The controller108 is adapted to control access to a first storage media 110, and to asecond storage media 112. In a particular embodiment, the controller 108can be a processor. The controller 108 is also coupled to controllerfirmware 114, which includes instructions that are executable by thecontroller 108 to perform a variety of storage device functions.

The firmware 114 includes interface command instructions 116, which mayinclude a list of data storage and other interface commands that areexecutable by the controller 108. In a particular example, the list maybe an exclusive list, such that the controller 108 is adapted todisregard interface commands that are not included in the list. Thefirmware 114 further includes learning instructions 118 that areexecutable by the controller 108 to monitor logical block addresses(LBAs) that are associated with data read requests received at the hostinterface 106. The firmware 114 also includes LBA selection logic 120that is adapted to select particular LBAs from the monitored LBAs forstorage of the associated files at the second memory 112 (as shown byfiles associated with the selected LBAs 126). Further, the firmware 122includes data transfer length logic 122 that is executable by thecontroller 108 to determine a length of each data transfer and tocompare the length to a specified (pre-determined) length. In aparticular embodiment, the term “length” refers to the size of the datatransfer. In a particular example, the length can refer to a size of aserial data transfer, a data transfer size for parallel transfer, orother similar data size dimensions. In a particular embodiment, the datatransfer length logic 122 and the LBA selection logic 120 can cooperateto allow the controller 108 to select LBAs associated with datatransfers of a specified length and to store files associated with theselected LBAs 126 at the second storage media 112.

In a particular example, if a gaming application is being executed bythe host system 104, loading instructions related to different levelsmay consist of long sequential files and some short random files. Inthis particular example, the controller 108 can use the LBA selectionlogic 120 and the data transfer length logic 122 to select LBAsassociated with only the short random files, which files often take themost time to load from the first storage media 110, and to store theselected short random files to the second storage media 112. Further, anaddress lookup table can be updated to associate the selected LBAs withthe second storage media 112. By storing the short random files at thesecond storage media 112, level load performance can be enhanced.

In a particular embodiment, the controller 108 of the storage device 102is adapted to automatically learn LBAs associated with frequentlyaccessed application data stored in the first storage media 110 and tostore files associated with the LBAs 126 at the second storage media 112to enhance read performance of the host system 104. In a particularembodiment, the storage device 102 is responsive to one or moreinterface commands to initiate manual learning (i.e., to triggerexecution of the learning instructions 118), to suspend or restartautomatic learning modes, and to stop the manual learning.

In a particular example, applications written for the host system 104can determine a set of LBAs that, if read from the second storage media112, would provide a performance benefit for the associated application.The application may include instructions that can then utilize themanual learning interface commands to initiate manual learning via thelearning instructions 118, which instructions cause the storage device102 to enter a manual learning mode. While the storage device 102 isoperating in the manual learning mode, the application can access theidentified LBAs and the controller 108 can use the learning instructions118 and the LBA selection logic 120 to manually learn the LBAs and tostore the files associated with the selected LBAs 126 in the secondstorage media 112. In a particular embodiment, the first storage media110 can be a disc data storage medium, and the second storage media 112can be a solid-state storage device, such as a NAND flash memory device,a NOR flash memory device, another solid-state memory device, or anycombination thereof. The storage device 102 can preserve the learnedfiles associated with the LBAs 126 in the second storage medium 112 toprovide improved application performance for subsequent loads. In agaming example, the gaming application could initiate manual learning toset the storage device 102 into a manual learning mode and then read thefiles needed for the game levels when playing the game. The files forthe various game levels would then reside in the second storage medium112, reducing load time within the game and improving the user'sexperience.

In a particular embodiment, the manual learning mode of the storagedevice 102 causes the controller 108 to monitor all read operations andto store files associated with the monitored read operations (i.e.,files associated with the LBAs 126) at the second storage medium 112.Further, the controller 108 can update an address lookup table such thatthe LBAs are associated with the second storage medium 112. In anotherparticular embodiment, the controller 108 is adapted to select LBAs thatare associated with data transfers having lengths that are smaller thana predetermined length.

FIG. 2 is a block diagram of a particular illustrative embodiment of asystem 200 including a hybrid storage device 202 including a controller(i.e., a control processor 218) adapted to provide manual learningfunctionality. As used herein, the term “hybrid storage device” refersto a storage device that includes a first storage media and a secondstorage media. In a particular embodiment, hybrid storage device mayrefer to a storage device that includes both solid-state and discstorage media. Further, as used herein, the term “solid-state storagemedia” refers to storage medium that utilizes semiconductor propertiesto represent data values and that has no moving parts to record orretrieve the data.

The hybrid storage device 202 includes both disc storage media (one ormore discs 256) and solid-state storage media, such as a flash memorydevice (data flash 234, flash firmware 238, etc.). The hybrid storagedevice 202 is adapted to communicate with a host system 204. In aparticular embodiment, the host system 204 can be a computer, aprocessor, a mobile telephone, a personal digital assistant (PDA),another electronic device, or any combination thereof. In a particularexample, the hybrid storage device 202 can communicate with the hostsystem 204 via a universal serial bus (USB), another type ofcommunication interface, or any combination thereof. In anotherparticular example, the hybrid storage device 202 can be a stand-alonedevice that is adapted to communicate with the host system 204 via anetwork, such as via a network cable using a networking protocol.

The hybrid storage device 202 includes recording subsystem circuitry 206and a head-disc assembly 208. The recording subsystem circuitry 206includes storage device read/write control circuitry 210 and disc-headassembly control circuitry 220. The recording subsystem circuitry 206further includes an interface circuit 212, which includes a data bufferfor temporarily buffering data received via the interface circuit 212and which includes a sequencer for directing the operation of theread/write channel 216 and the preamplifier 250 during data transferoperations. The interface circuit 212 is coupled to the host system 204and to a control processor 218, which is adapted to control operation ofthe hybrid storage device 202. In a particular embodiment, the controlprocessor 218 includes logical block address (LBA) learning logic 219that is adapted to monitor LBAs associated with read requests receivedat the interface 212 from the host system 204 to access data and/orapplications stored at a first memory, such as one or more discs 256.The LBA learning logic 219 can selectively store files associated withthe monitored LBAs 260 at a second memory, such as a flash memory 234 toenhance perceived performance of a host application executing on thehost system 204. In a particular example, by storing the selected filesat the flash memory 234, the load performance of the storage device 202can be improved for particular applications. In a particular embodiment,the one or more discs 256 represent rotatable, non-volatile storagemedia.

The control processor 218 is coupled to a servo circuit 222 that isadapted to control the position of one or more read/write heads 254relative to the one or more discs 256 as part of a servo loopestablished by the one or more read/write heads 254. The one or moreread/write heads 254 can be mounted to a rotary actuator assembly towhich a coil 252 of a voice coil motor (VCM) is attached. The VCMincludes a pair of magnetic flux paths between which the coil 252 isdisposed so that the passage of current through the coil 252 causesmagnetic interaction between the coil 252 and the magnetic flux paths,resulting in the controlled rotation of the actuator assembly and themovement of the one or more heads 254 relative to the surfaces of theone or more discs 256. The servo circuit 222 is used to control theapplication of current to the coil 252, and hence the position of theheads 254 with respect to the tracks of the one or more discs 256.

The disc-head assembly control circuitry 220 includes the servo circuit222 and includes a spindle circuit 224 that is coupled to a spindlemotor 258 to control the rotation of the one or more discs 256. Thehybrid storage device 202 also includes an auxiliary power device 228that is coupled to voltage regulator circuitry 226 of the disc-headassembly control circuitry 220 and that is adapted to operate as a powersource when power to the hybrid storage device 202 is lost. In aparticular embodiment, the auxiliary power device 228 can be a capacitoror a battery that is adapted to supply power to the hybrid storagedevice 202 under certain operating conditions. In a particular example,the auxiliary power device 228 can provide a power supply to therecording subsystem assembly 206 and to the disc-head assembly 208 torecord data to the one or more discs 256 when power is turned off.Further, the auxiliary power device 228 may supply power to therecording subsystem assembly 206 to record data to the data flash 234when power is turned off.

Additionally, the hybrid storage device 202 includes the data flashmemory 234, a dynamic random access memory (DRAM) 236, firmware 238(such as a flash memory), other memory 242, or any combination thereof.In a particular embodiment, the firmware 238 is accessible to thecontrol processor 218 and is adapted to store the LBA learninginstructions 240.

In a particular embodiment, the control processor 218 is responsive toan “initiate manual learning” interface command received from the hostsystem 204 via the interface 212 to load the LBA learning instructions240 from the flash firmware 238 to the control processor 218 asillustrated by the LBA learning logic 219. The LBA learning logic 219 isexecutable by the control processor 218 to monitor LBAs associated withread access requests and to selectively store files associated with themonitored LBAs to the flash memory 234 (as indicated at 260). In aparticular embodiment, control processor 218 is adapted to suspendmonitoring of the LBAs when a defragmentation operation is beingperformed on the one or more discs 256 and to resume monitoring of theLBAs when the defragmentation operation is completed.

FIG. 3 is a block diagram of a particular illustrative embodiment of asystem 300 including a second storage media 302 having a set of filesassociated with logical block addresses (LBAs). The storage media 302can include multiple files related to selected LBAs. In a particularexample, the storage media 302 includes a first file associated with afirst logical block address (LBA) 304, a second file associated with asecond LBA 306, a third file associated with a third LBA 308 and an N-thfile associated with an N-th LBA 310. In a particular embodiment, thesecond storage medium 302 can be a flash memory or other solid-statememory. Further, the second storage medium 302 can store any number offiles associated with any number of LBAs. In a particular example, eachof the files 304, 306, 308 and 310 stored at the second storage mediumcan have a file size that is less than a pre-determined size. In anotherparticular example, each of the files 304, 306, 308, and 310 representfiles associated with LBAs that were accessed while the controller wasoperating in a manual learning mode.

FIGS. 4 and 5 below illustrate representative flow diagrams ofparticular examples of methods of manual learning in a storage device.It should be understood that the particular flow diagrams of FIGS. 4 and5 are illustrative only, and are not intended to be limiting.

FIG. 4 is a flow diagram of a particular illustrative embodiment of amethod of triggering manual learning at a storage device. The methodbegins at 402. At 404, if manual learning is not initiated, the methodadvances to 416 and is terminated. Returning to 404, if manual learningis activated, the method advances to 406 and the controller monitorslogical block addresses (LBAs) associated with read access requests toretrieve data from a first storage medium. Continuing to 408, thecontroller evaluates the monitored LBA to determine if storage of themonitored LBA at a second storage medium would improve application loadtime. If such storage would not improve application load time, themethod returns to 406, and the controller monitors logical blockaddresses (LBAs) associated with read access requests to retrieve datafrom a first storage medium. If application load time would be improvedat 408, the method advances to 410 and the controller determines if thedata transfer length is greater than a threshold length. If the datatransfer length is greater than the threshold length, the method returnsto 406, and the controller monitors logical block addresses (LBAs)associated with read access requests to retrieve data from a firststorage medium.

Returning to 410, if the data transfer length is less than the thresholdlength, the method advances to 412 and the controller selectively storesa file related to at least one of the monitored LBAs at the secondstorage medium to enhance performance of applications associated withthe LBAs. Proceeding to 414, an address lookup table is updated to mapthe at least one of the monitored LBAs to the second storage medium. Themethod terminates at 416.

FIG. 5 is a flow diagram of a second particular illustrative embodimentof a method of triggering manual learning at a storage device. Themethod begins at 502. At 504, a trigger is received to initiatelearning. In a particular example, the trigger is a storage devicecommand received at an interface of the storage device. In anotherparticular embodiment, the trigger may be initiated by firmwareoperating on the storage device. In response to receiving a trigger, thecontroller can load and execute a logical block address (LBA) learningalgorithm.

Advancing to 506, LBAs associated with read operations associated withretrieval of data from a first storage medium are monitored in responseto receiving the trigger. Continuing to 508, files associated with themonitored LBAs that have lengths that are less than a pre-determinedlength are selectively stored at a second storage medium to enhanceperformance of applications associated with the LBAs. In a particularexample, the storage device can monitor real-time storage deviceaccesses to select LBAs and to store files associated with the selectedLBAs into the second storage medium. In another particular embodiment,the storage device maintain a log file of file accesses and canselectively initiate manual learning to review the log file and to storefiles associated with selected LBAs into the second storage medium.Proceeding to 510, an address lookup table is updated to map themonitored LBAs to the second storage medium. Continuing to 512, if asuspend command is not received, the method returns to 506 and LBAsassociated with read operations associated with retrieval of data from afirst storage medium are monitored in response to receiving the trigger.Otherwise, if a suspend command is received at 512, the method isterminated at 514.

In conjunction with the systems and method disclosed above with respectto FIGS. 1-5, a storage device is disclosed that includes a controllerthat is adapted to enter a manual learning mode in response to a trigger(such as a manual learning interface command received from a hostsystem, a manual learning process initiated by the controller, or anycombination thereof). In the manual learning mode, the controllermonitors logical block addresses (LBAs) associated with read requests,and selectively stores files associated with selected LBAs to a secondstorage media, such as a non-volatile solid-state memory device. In aparticular embodiment, the selected LBAs are chosen based on a datatransfer length. The files can be stored in the second storage media toimprove performance of the storage device and to enhance perceivedperformance of applications operating on an associated host system.

In a particular example, the hybrid storage device can have first andsecond storage media. In a particular instance, the first storage mediacan be a disc storage media and the second storage media can be anon-volatile flash memory. In another particular instance, the first andsecond storage media may be solid-state storage media having differentread/write characteristics. In a particular example, the second storagemedia can have faster read/write times than the first storage media,which may have a larger storage capacity, for example.

It is to be understood that even though numerous characteristics andadvantages of various embodiments of the invention have been set forthin the foregoing description, together with details of the structure andfunction of various embodiments of the invention, this disclosure isillustrative only, and changes may be made in detail, especially inmatters of structure and arrangement of parts within the principles ofthe present invention to the full extent indicated by the broad generalmeaning of the terms in which the appended claims are expressed. Forexample, the particular elements may vary depending on the particularapplication for the storage system while maintaining substantially thesame functionality without departing from the scope and spirit of thepresent invention. In addition, although the preferred embodimentdescribed herein is directed to a storage system for manual learning oflogical block addresses that includes a disc storage media and anon-volatile solid-state storage media, it will be appreciated by thoseskilled in the art that the teachings of the present invention can beapplied to other storage systems that include first and second storagemedia having different read/write performance parameters, withoutdeparting from the scope and spirit of the present invention.

1. A system comprising: a controller adapted to: monitor logical blockaddresses (LBAs) for operations associated with a first data storagemedium; and selectively store data associated with particular LBAs to asecond data storage medium.
 2. The system of claim 1 further comprisingthe operations include access operations and the controller is furtheradapted to automatically determine LBAs associated with frequentlyaccessed data stored in the first data storage medium and to store dataassociated with such LBAs at the second data storage medium.
 3. Thesystem of claim 1 further comprising the controller adapted to:determine a length of a data transfer operation for the first datastorage medium; and selectively store data associated with a particularlength of a data transfer to the second data storage medium.
 4. Thesystem of claim 3 further comprising the particular length is athreshold length and data with lengths shorter than the threshold lengthare stored at the second data storage medium.
 5. The system of claim 1further comprising the controller adapted to determine when a particularLBA of the monitored LBAs can be stored at the second storage medium toenhance performance of a host system based on a learning algorithm andto selectively store the particular LBA based on the determination. 6.The system of claim 1 further comprising the system is responsive to oneor more commands received externally to the system to initiate a manuallearning mode that includes determining when a particular LBA of themonitored LBAs can be stored at the second storage medium to enhanceperformance of another system and to selectively store the particularLBA based on the determination.
 7. The system of claim 6 furthercomprising the system is responsive to one or more commands receivedexternally to the system to stop the manual learning mode.
 8. A methodcomprising: monitoring data transfer operations associated with a firstdata storage medium; and selectively storing data associated with aparticular length of a monitored data transfer to a second data storagemedium.
 9. The method of claim 8 further comprising automaticallydetermining logical block addresses (LBAs) associated with frequentlyaccessed application data stored in the first data storage medium andstoring files associated with the LBAs at the second data storagemedium.
 10. The method of claim 8 further comprising initiating a manuallearning mode in response to a received command, the manual learningmode including determining when a particular logical block address (LBA)of the monitored data transfer operations can be stored at the secondstorage medium to enhance performance of another system.
 11. The methodof claim 8 further comprising selectively storing data associated with adata transfer operation having a length less than the particular lengthto the second data storage medium.
 12. A device comprising: a controlleradapted to initiate a manual learning mode in response to a receivedcommand, the manual learning mode including determining when aparticular logical block address (LBA) of the monitored data transferoperations can be stored at an alternate storage medium to enhanceperformance of another system.
 13. The device of claim 12 furthercomprising: a host interface responsive to a host system; a firststorage medium to store user data and applications executable by thehost system; and a second storage medium comprising the alternatestorage medium.
 14. The device of claim 12, further comprising thecontroller is adapted to: receive a command from a host system via ahost interface; initiate the manual learning mode in response to thereceived command; and selectively store files associated with themonitored LBAs to the alternate storage medium.
 15. The device of claim12 further comprising the controller is adapted to stop monitoring theLBAs in response to receiving a command.
 16. The device of claim 12,wherein the command may be received from an application of a hostcomputer system and the application can include instructions that canutilize the command to initiate the manual learning mode.
 17. The deviceof claim 12 further comprising the manual learning mode causes thecontroller to monitor read operations from a first storage medium and tostore files associated with the monitored read operations at thealternate storage medium when the read operations have lengths that aresmaller than a threshold length.
 18. The device of claim 12 furthercomprising the controller adapted to: automatically identify LBAs thatare frequently accessed at a first storage medium; and selectively storefiles associated with the identified LBAs at the alternate storagemedium.
 19. The device of claim 12 further comprising the controlleradapted to: evaluate LBAs to determine if storage of the LBAs at thealternate medium would improve an application load time; and selectivelystore LBAs to the alternate medium based on the evaluation.
 20. Thedevice of claim 19 wherein the controller is a data storage controllerof a data storage device and the application is a software applicationof a host computer connectable via an interface to the data storagedevice.